import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/uset/index'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    user
  },
  plugins: [
    createPersistedState({
      // 存储的 key 的key值
      key: 'DKDstore',
      paths: ['user.userDate']
    })
  ]

})
